<div class="content-left content-double">

    <h1>Upcoming Raids</h1>
    
    <div class="frame-input">
        <table class='shaded' style="width: 100%">
        <thead>
            <tr>
                <th>Raidleader</th>
                <th>Start</th>
                <th>End</th>
                <th>signup</th>
                <th colspan="1">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
        <?php foreach($this->raids as $raid) : ?>
            <tr class="<?= $this->alternator(array("odd","even")); ?>">
                <td>    
                    <?= $this->escape($raid->findParentRow('User_Model_Users')->name); ?>
                </td>
                <td>    
                    <?= $this->escape($raid->start_time); ?>
                </td>
                <td>    
                    <?= $this->escape($raid->end_time); ?>
                </td>
                <td style="text-align: center;">
                     <?= $this->escape($raid->signup_deadline); ?>
                </td>
                <td style="text-align: center;">
                    <?= $this->link('Edit', array('action'=>'edit', 'raid'=>$raid->id)); ?>
                </td>
            </tr>
        <?php endforeach; ?>
        </tbody>    
        </table>
    </div>
    
</div>

<div class="content-right content-half">

    <h1>&nbsp;</h1>

    <div class="frame-input">
        <div class="frame-content">
        
            <div class="button-large">
                <?= $this->link('Create', array('action'=>'create')); ?>
            </div>
            
            <br/>
            <br/>
            
            <div class="button-small">
                <?= $this->link('Old Raids', array('action'=>'old')); ?>
            </div>
            
        </div>
    </div>
    
</div>